import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router"

import ElementUI from "element-ui"
import 'element-ui/lib/theme-chalk/index.css';


import Login from "./components/user/Login"

import Reg from "./components/user/Reg"

import Index from "./components/index/Index"

import StroreInfo from "./components/store/StroreInfo"

import ShowStroreInfo from "./components/store/ShowStroreInfo"



Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(ElementUI)


var router = new VueRouter({
	routes: [{
			path: '/',
			redirect: '/login'
		},
		{
			path: '/login',
			component: Login
		},
		{
			path: '/stroreInfo',
			component: StroreInfo
		},
		{
			path: '/showStroreInfo',
			component: ShowStroreInfo
		},
		{
			path: '/index',
			component: Index
		},
		{
			path: '/reg',
			component: Reg
		}

	]
})

new Vue({
	render: h => h(App),
	router
}).$mount('#app')